// import resolve from 'rollup-plugin-node-resolve';
// import commonjs from 'rollup-plugin-commonjs';
// import babel from 'rollup-plugin-babel';
// import { uglify } from "rollup-plugin-uglify";
import typescript from 'rollup-plugin-typescript';

export default {
  // input: 'lib/index.js',
  input: 'src/index.ts',
  output: {
    file: 'lib/index.umd.js',
    format: 'umd',
    name: 'typescriptRollupLearn',
  },
  external: [
    'vue', 'vue-class-component', 'reflect-metadata',
  ],
  exports: 'named',
  globals: {
    'vue': 'Vue',
    'vue-class-component': 'VueClassComponent',
  },
  plugins: [
    // resolve(),
    // commonjs(),
    typescript(),
    // babel({
    //   exclude: ['node_modules/**'],
    //   runtimeHelpers: true,
    // }),
    // uglify(),
  ],
};
